package com.homework;

public class JavaMain {
    public static void main(String[] args) {
        Athlete ath1=new BasketballAth();
        ath1.setName("Kobe");
        ath1.setAge(41);
        Athlete ath2=new PPAth();
        ath2.setName("马龙");
        ath2.setAge(37);

        Coach co1=new BasketballCo();
        co1.setName("红衣主教");
        co1.setAge(89);
        Coach co2=new PPCo();
        co2.setName("李永波");
        co2.setAge(59);

        System.out.println(ath1.getName()+","+ath1.getAge()+"岁");
        ath1.Study();
        ath1.eat();

        ath2.Study();

        co1.Teach();
        co1.eat();

        co2.Teach();
    }
}
